﻿using Inovout.Memberships.Models;
using Inovout.Organizations.Models;

namespace Inovout.Organizations.Memberships.Models
{
    partial class OrganizationMembership : Membership
    {
        public OrganizationMembership()
            : base(typeof(OrganizationMembership))
        {
        }
        private OrganizationUnit organization;
        public virtual OrganizationUnit Organization
        {
            get { return this.organization; }
            set
            {
                this.organization = value;
                base.Name = this.organization.Name;
                base.Email = this.organization.Email;
            }
        }
    }
}
